package com.jinkaimen.goodcash.manager;


import com.ht.baselibs.retrofit.RequestUtils;
import com.jinkaimen.goodcash.api.Api;


/**
 * Created by huangtao on 16/7/6.
 */
public class ApiManager {
    private static Api api;

    public static Api getApi(){
        if (api == null){
            synchronized (ApiManager.class){
                if (api == null){
                    api = (Api) RequestUtils.getInstance().create(Api.class);
                }
            }
        }
        return api;
    }
}